package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class HtmlController {

	@GetMapping("/")
	public String index() {
		return "upload";
	}

	@GetMapping("/html/{h1}")
	public String html(@PathVariable String h1) {
		return h1;
	}

	@GetMapping("/html/{h1}/{h2}")
	public String htmls(@PathVariable String h1, @PathVariable String h2) {
		return h1 + "/" + h2;
	}
	

}
